﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace NIIT.SaoBacDau.Aupi.HospitalManagement
{
    public partial class Systems : Form
    {
        private int time = 1;
        public Systems()
        {
            InitializeComponent();
        }

        private void Systems_Load(object sender, EventArgs e)
        {
            timer_system.Start();
        }

        private void ShowSystems()
        {
            this.Hide();
            Managements app = new Managements();
            app.ShowDialog();
        }
        private void timer_system_Tick(object sender, EventArgs e)
        {
            time -= 1;
            if (time == 0)
            {
                timer_system.Stop();
                ShowSystems();
            }
        }
    }
}
